<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
    <style>
        .daterangepicker {
            min-width: auto;
            width: 520px;
        }

        .floatLeft {
            float: left;
            margin: -7px 6px 0 0;
            width: 90px;
        }
    </style>
</head>
<body>
<div class="box">
    <div class="box-body">
        <div class="nav-tabs-custom">
            <ul class="nav nav-tabs pull-right">
                <li class=""><a href="#fault_tables" data-toggle="tab" aria-expanded="false"><i
                        class="fa fa-table"></i> 表</a></li>
                <li class="active"><a href="#fault_picture" data-toggle="tab" aria-expanded="true"><i
                        class="fa fa-line-chart"></i> 图</a></li>
                <li class="pull-left header"><i class="fa fa-exclamation"></i> 报警统计图表</li>
            </ul>
            <div class="tab-content no-padding">
                <div class="chart tab-pane active" id="fault_picture">
                    <div class="box">
                        <div class="box-header with-border text-center">
                            <h3 class="box-title" style="margin-top: 10px;">
                                <div class='input-group input-group-sm'>
                                    <input type="text" class="form-control text-center floatLeft" id="alarmPushTime"
                                           readonly="readonly"
                                           style="width: 70px;height: 30px; margin: -7px 6px 0 0; font-size: 24px;font-weight: 500"/>
                                    <div class='input-group input-group-sm floatLeft'
                                         style="position: relative;left: -23px;">
                                        <button id="yearBtn" class="btn" style="height: 30px">所有</button>
                                    </div>

                                    <div id="orgIdBlock" style="display: none"
                                         class='input-group input-group-sm floatLeft'>
                                        <select class='form-control' style='width: 90px' id='orgIds'>
                                            <option value="-1" selected>全部公司</option>
                                        </select>
                                    </div>
                                    <div class='input-group input-group-sm floatLeft'>
                                        <input class='form-control' style='width: 125px' id='deviceId'
                                               placeholder="设备号">
                                        <span class='input-group-btn'>
                                            <button class='btn btn-primary btn-flat' type='button'
                                                    onclick=' $.getAlarmCounts();'>
                                            <i class='fa fa-search'></i>
                                            </button>
                                        </span>
                                    </div>
                                </div>
                                <span id="word">报警统计图</span>
                            </h3>
                            <div class='input-group input-group-sm' style="float: right;">
                                <span id="orgSelect"></span>
                            </div>
                        </div>
                        <div class="box-body">
                            <div class="chart" id="barChartParent">
                                <canvas id="barChart" style="height:230px"></canvas>
                            </div>
                        </div>
                    </div>
                </div>
                <div class="chart tab-pane" id="fault_tables">
                    <div class="box">
                        <div class="box-body">
                            <table id="alarmHistoryDataTable" class="table table-bordered table-striped" cellspacing="0"
                                   width="100%">
                                <thead>
                                <tr>
                                    <th>序号</th>
                                    <th>报警内容</th>
                                    <th>所属公司</th>
                                    <th>时间</th>
                                    <th>设备号</th>
                                </tr>
                                </thead>
                            </table>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>


<!--标杆标牌modal-->
<div id="modal-AllInformation" class="modal fade" tabindex="-1" role="dialog" aria-labelledby="label-AllInformation"
     aria-hidden="true">
    <div class="modal-dialog" style="width: 800px;">
        <div class="modal-content">
            <form id="form-AllInformation" name="form-AllInformation" class="form-horizontal" role="form" method="post">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"
                            onclick="$.clearModal($('#form-AllInformation'), $('#modal-AllInformation'))">
                        <span aria-hidden="true">&times;</span></button>
                    <b class="modal-title">信息展示</b>
                </div>
                <div class="modal-body">
                    <table id="myTable" class="table table-bordered table-striped">
                        <tr>
                            <td rowspan="6" colspan="3"><img id="img" style="width: 230px;height:270px; cursor: pointer"
                                                             src=""></td>
                            <td><b>地址：</b></td>
                            <td colspan="3" id="address"></td>
                        </tr>
                        <tr>
                            <td><b>尺寸：</b></td>
                            <td id="solarEnergyStyle"></td>
                            <td><b>采集员：</b></td>
                            <td id="create"></td>
                        </tr>
                        <tr>
                            <td><b>保修期：</b></td>
                            <td colspan="3" id="solarEnergyPeriod"></td>
                        </tr>
                        <tr>
                            <td><b>养护单位：</b></td>
                            <td colspan="3" id="company"></td>
                        </tr>
                        <tr>
                            <td><b>监管单位：</b></td>
                            <td colspan="3" id="mainOrg"></td>
                        </tr>
                        <tr id="t">
                        </tr>
                    </table>
                    <div id="myDiv">
                        <p id="mp"></p>
                    </div>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-primary btn-flat"
                            onclick="$.clearModal($('#form-AllInformation'), $('#modal-AllInformation'))">
                        <span class="glyphicon glyphicon-ok" aria-hidden="true"></span> 完成
                    </button>
                </div>
            </form>
        </div>
    </div>
</div>
</body>
<script src="count/monitorAlarmCount.js"></script>
</html>